package edu.lit.cn.service.serviceImpl;

import edu.lit.cn.mapper.InspectDataMapper;
import edu.lit.cn.service.InspectionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.HashMap;
@Service
public class InspectionServiceImpl implements InspectionService {
    @Autowired
    InspectDataMapper inspectDataMapper;
    @Override
    public ArrayList<HashMap<String, Object>> getAll() {
        return inspectDataMapper.getAll();
    }

    @Override
    public ArrayList<HashMap<String, Object>> getAbnormal() {
        return inspectDataMapper.getAbnormal();
    }

    @Override
    public ArrayList<HashMap<String, Object>> getAllInspectionInformation(int id) {
        return inspectDataMapper.getAllInspectionInformation(id);
    }
}
